import { get, post } from '../utils/http'

//上传
export const upload_qiniu = () => get('uploadToken')

// 登录
export const seaAdminLogin = data => post('seaAmoy/seaAdminLogin', data)

// 退出登录
export const loginAdminOut = () => get('seaAmoy/loginAdminOut')

// 分类列表
export const seaClassList = data => get('seaAmoy/seaClassList', data)

//添加分类
export const addSeaClass = data => post('seaAmoy/addSeaClass', data)

//编辑分类
export const editSeaClass = data => post('seaAmoy/editSeaClass', data)

//删除分类
export const delSeaClass = data => get('seaAmoy/delSeaClass', data)

//添加商品
export const addSeaGoods = data => post('seaAmoy/addSeaGoods', data)

//编辑商品
export const editSeaGoods = data => post('seaAmoy/editSeaGoods', data)

// 商品详情
export const seaCloudGoodsDetail = data => get('seaAmoy/seaCloudGoodsDetail', data)

//商品列表
export const seaAdminGoodsList = data => get('seaAmoy/seaAdminGoodsList', data)